<style>
	.tb_row{
		display:table-row; padding-left:3px;
	}
	.tb_row .tb_1cell{
		width:120px; display:table-cell; padding-left:2px;	
	}
	.tb_row .tb_2cell{
		display:table-cell; vertical-align:top; height:125px;"
	}
</style>
<div class="caption_box icon_title" style="width:664px;">
    <span><?php echo $this->translator()->widget('enterprise_latest_post');?></span>
</div>
<?php
    $skin_url = $this->APP_STATIC_SERVER . '/skins/'. $this->APP_TEMPLATE . '/'. $this->APP_SKIN;
?>
<?php $i=0; foreach ($this->enterprises as $enterprise):?>
<?php
    /**
    * Check image exist directory
    **/
    $file_noimage = $this->APP_STATIC_SERVER."/images/logos/no-logo.jpg";
    $file = $this->APP_STATIC_SERVER."/images/logos/".$enterprise->id.'.jpg';
    $path = str_replace($this->APP_STATIC_SERVER,getcwd(),$file);
    $urlImage = is_file($path)?$file:$file_noimage;

    //Param url detail    
    $arrRouteDetail = array(
        'enterprise_id' => $enterprise->id,
        'enterprise_name' => Tomato_Utility_String::removeSign($enterprise->company_name_en, '-', true),
    );
    $enterprise_name = ($this->lang == 'vi_VN')?$enterprise->company_name_vn:$enterprise->company_name_en;
?>
<?php if($i%5==0):?>
<div class="subrow tb_row">
<?php endif;?>
	<div class="tb_1cell">
	    <div class="subcolumns_oldgecko">
	        <a href="<?php echo $this->url($arrRouteDetail,'bizprofile_enterprise_index');?>"><span class="title"><?php echo $enterprise->company_name_en;?></span></a>
	    </div>
	    <div class="subcolumns_oldgecko tb_2cell">
			<a href="<?php echo $this->url($arrRouteDetail,'bizprofile_enterprise_index');?>"><img class="item_img" width="120" src="<?php echo $urlImage;?>" title="<?php echo $enterprise_name;?>" alt="<?php echo $enterprise_name;?>" /></a>	        
	    </div>    
    </div>
<?php $i++; if($i%5==0):?>
</div>
<?php endif;?>
<?php endforeach;?>
<?php if($i%5!=0):?>
</div>
<?php endif;?>